Definition:
- it makes your test non-deterministic: you will never be sure which path will be verified in the next pass
Code Example:
if (existsInSystem(testUser)) {
// test for existing user...
} else {
// test for not existing user...
}
References:
Quality attributes
- :octicon:`file-code;1em` - Code Example
- :octicon:`comment-discussion;1em` - Cause and Effect
- :octicon:`graph;1em` - Frequency
- :octicon:`sync;1em` - Refactoring
- Anti-patterns in test automation :octicon:`file-code;1em` :octicon:`sync;1em`
- On the Maintenance of System User Interactive Tests :octicon:`comment-discussion;1em` :octicon:`graph;1em` :octicon:`sync;1em`
- Smells in System User Interactive Tests :octicon:`comment-discussion;1em` :octicon:`graph;1em` :octicon:`sync;1em`
- Test Smells - The Coding Craftsman